import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"

// 获取分类数据定义列表
export function getClassifiedDataDefinitionList(data: any) {
    return service.get<any, any>(`/mes/type/list?typeName=${data.typeName}&typeNo=${data.typeNo}`)
}

// 删除
export const delClassifiedDataDefinition = (id: any) => {
    return service.delete<any, any>(`/mes/type/${id}`) 
}

// 修改
export const updateClassifiedDataDefinition = (data: any) => {
    return service.put<any, any>(`/mes/type/update`, data)
}

// 分类资料定义新增
export const addClassifiedDataDefinition = (data: any) => {
    return service.post<any, any>(`/mes/type/add`, data) 
}